﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.ApplicationModel.Bootstrap.Extensibility;
using YasharEl.Infrastructure.ObjectFactory.Unity;
using System.Windows;
using System.Reflection;

namespace YasharEl.Infrastructure.PresentationModel.PrismIntegration.Bootstrap
{
    public class PrismUnityBootstrapperExtension : InfrastructureComponentBootstrappingExtension
    {
        #region Fields

        private PrismUnityBootstrapper prismUnityBootstrapper = null;
        readonly string assemblyFullName = Assembly.GetExecutingAssembly().FullName;

        #endregion

        #region BaseComplexBootstrappingExtension Implementations

        public override string Describe()
        {
            return "Extension which integrate and setup the Prism framework for building MVVM and Modular WPF Applications.";
        }

        #endregion

        public override void Configure()
        {
            base.Configure();

            prismUnityBootstrapper = new PrismUnityBootstrapper((UnityDependencyContainer)Container);
        }

        public override void Start()
        {
            base.Start();

            prismUnityBootstrapper.Run();
        }

        public override void Shutdown()
        {
            base.Shutdown();
        }

        public override void Ready()
        {
            base.Ready();
        }
    }
}
